
package com.microsoft.schemas.office.project.server.webservices.statusing;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for DelegationFilterType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="DelegationFilterType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="SingleAssignment"/>
 *     &lt;enumeration value="Project"/>
 *     &lt;enumeration value="TeamResource"/>
 *     &lt;enumeration value="MyAssignments"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "DelegationFilterType")
@XmlEnum
public enum DelegationFilterType {

    @XmlEnumValue("SingleAssignment")
    SINGLE_ASSIGNMENT("SingleAssignment"),
    @XmlEnumValue("Project")
    PROJECT("Project"),
    @XmlEnumValue("TeamResource")
    TEAM_RESOURCE("TeamResource"),
    @XmlEnumValue("MyAssignments")
    MY_ASSIGNMENTS("MyAssignments");
    private final String value;

    DelegationFilterType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static DelegationFilterType fromValue(String v) {
        for (DelegationFilterType c: DelegationFilterType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
